using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Exercise1
{
    class CashRegister
    {
        public static double calculateTotalPrice(double priceOfProduct, int quantity)
        {
            double totalOrderPrice = 0;
            totalOrderPrice = priceOfProduct * quantity;
            return totalOrderPrice;
        }
        static void Main(string[] args)
        {
            string nameOfCustomer="";
            double priceOfProduct = 0;
            int quantity = 0;
                        

            Console.WriteLine("Please enter your name:");
            nameOfCustomer = Console.ReadLine();
            

            Console.WriteLine("Please enter price of the product:");
            priceOfProduct = Convert.ToDouble(Console.ReadLine());
            

            Console.WriteLine("Please enter quantity on the product:");
            quantity = Convert.ToInt32(Console.ReadLine());

            Console.WriteLine("Customer name: {0}, Total price of the order is :{1} ", nameOfCustomer, calculateTotalPrice(priceOfProduct, quantity));
        }
    }
}
